package svc

import (
	"videoProject/src/usermanage/api/internal/config"
	"videoProject/src/usermanage/model"

	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

type ServiceContext struct {
	Config config.Config
	//UsersRpc userclient.User
	UserModel model.UserModel
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		UserModel: model.NewUserModel(sqlx.NewMysql(c.Mysql.DataSource)),
		//UsersRpc: userclient.NewUser(zrpc.MustNewClient(c.UserRpc)),
	}
}
